package dbspo

type MqttSender struct {
	ProductId        uint64  `json:"productId" gorm:"id"`
	MqttUserName     string  `json:"-" gorm:"primaryKey;size:50"`
	MqttUserPassword string  `json:"-" gorm:"size:50"`
	MqttUserEnable   bool    `json:"-"`
	Product          Product `json:"-" gorm:"foreignKey:ProductId"`
}

func (*MqttSender) TableName() string {
	return "ht_mqtt_sender"
}
